package com.ccc.Mapper;

import com.ccc.Beans.user;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface demo {
    @Insert("insert into user1 values(#{password},#{username})")
    public void Insert1(@Param("password")String password,@Param("username")String username);
    @Select("select * from user1")
    public List<user> selectAll();
}
